ExamPlay Light Logo
Ingia

Computer Science for IGCSE & O level - Programming (Section 5 - No. 40)

What is the correct syntax for a FOR loop in Python?
for i = 1 to 10
for i in range(1, 10):
for i = 1, 10
for i in range(10,1)

Maelezo

The correct syntax is `for i in range(start, end):`.

Maoni (0)

Ingia Ili Kutoa Maoni
Tangazo
BrainBehindX Inc Logo
©2026; Inaendeshwa Na BrainBehindX Inc